const getters = {
  sidebar: (state) => state.app.sidebar,
  device: (state) => state.app.device,
  // 建立快捷访问对token的快捷访问
  token: (state) => state.user.token,
  // 建立一个对userInfo的username的快捷访问
  name: state => state.user.userInfo.username,
  // 建立一个对userId的快捷访问
  userId: state => state.user.userInfo.userId,
  // 建立一个对员工头像的快捷访问
  staffPhoto: state => state.user.userInfo.staffPhotos,
  // 建立一个对公司id的快捷访问
  companyId: state => state.user.userInfo.companyId,
  // 建立一个动态路由的快捷访问
  routes: state => state.permission.routes,
};
export default getters;
